package com.lagou.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 *  id VARCHAR(40) PRIMARY KEY COMMENT '订单编号, UUID',
 * 	goods_id INT COMMENT '购买商品编号',
 * 	create_time DATETIME COMMENT '订单创建时间',
 * 	`status` INT DEFAULT '0' COMMENT '订单状态, 0-未支付, 1-已支付, 2-已失效, 3-已删除'
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class Order {
    private String id;
    private int goodsId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "UTC")
    private Date createTime;
    private int status;
}
